package com.byxy.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "Employee")

public class Employee implements Serializable {
	/**
	* 
	*/
	private static final long serialVersionUID = 6530729685064747903L;
	@Id
	@Column(name = "id")
	private Integer id;
	@Column(name = "neme", length = 50)
	private String neme;
	@Column(name = "sex", length = 50)
	private String sex;
	@Column(name = "birthday", length = 50)
	private Date birthday;
	@Column(name = "joinDate", length = 50)
	private Date joinDate;
	@Column(name = "eno", length = 50)
	private String eno;
	@Column(name = "username", length = 50)
	private String username;
	@Column(name = "password", length = 50)
	private String password;
	@Column(name = "department", length = 50)
	private Department department;

	public Employee() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Employee(Integer id, String neme, String sex, Date birthday, Date joinDate, String eno, String username,
			String password, Department department) {
		super();
		this.id = id;
		this.neme = neme;
		this.sex = sex;
		this.birthday = birthday;
		this.joinDate = joinDate;
		this.eno = eno;
		this.username = username;
		this.password = password;
		this.department = department;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNeme() {
		return neme;
	}

	public void setNeme(String neme) {
		this.neme = neme;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Date getJoinDate() {
		return joinDate;
	}

	public void setJoinDate(Date joinDate) {
		this.joinDate = joinDate;
	}

	public String getEno() {
		return eno;
	}

	public void setEno(String eno) {
		this.eno = eno;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}
}
